import request from "@/utils/request";

export function getMyDownList(data) {
  // 获取本人列表
  return request({
    url: "/renovation/project/getMyDownList",
    method: "POST",
    data
  });
}

export function getDistList() {
  // 获取区域列表
  return request({
    url: "/renovation/region/getDistList",
    method: "POST",
  });
}

export function getMyDownListType() {
  // 获取项目类型
  return request({
    url: "/renovation/project/getMyDownListType",
    method: "POST",
  });
}

export function getAllDownList(data) {
  // 获取所有列表
  return request({
    url: "/renovation/project/getAllDownList",
    method: "POST",
    data
  });
}

export function getAllServiceStage() {
  // 获取所有阶段
  return request({
    url: "/renovation/project/getAllServiceStage",
    method: "POST",
  });
}

export function getWhereTheLink(data) {
  // 获取所有阶段
  return request({
    url: "/renovation/project/getWhereTheLink",
    method: "POST",
    formData:data
  });
}

export function projectStageStatistics(data) {
  // 获取项目进度情况统计
  return request({
    url: "/renovation/project/projectStageStatistics",
    method: "POST",
    data
  });
}

export function projectDistTypeStatistics(data) {
  // 获取项目分类统计
  return request({
    url: "/renovation/project/projectDistTypeStatistics",
    method: "POST",
    data
  });
}

export function projectBackAdministrationData(data) {
  // 获取入库备案统计列表
  return request({
    url: "/renovation/project/projectBackAdministrationData",
    method: "POST",
    data
  });
}

export function yearList() {
  // 获取年份列表
  return request({
    url: "/renovation/project/yearList",
    method: "POST",
  });
}

export function projectTypeEnumList(data) {
  // 获取入库备案统计列表
  return request({
    url: "/renovation/project/projectTypeEnumList",
    method: "POST",
    formData:data
  });
}

export function projectCompletedSurvey(data) {
  // 获取竣工验收列表
  return request({
    url: "/renovation/project/projectCompletedSurvey",
    method: "POST",
    data
  });
}

export function projectBackAdministrationDataTwo(data) {
  // 获取入库备案统计列表(二期)
  return request({
    url: "/pc/project/project_back_administration_data",
    method: "POST",
    data
  });
}

export function projectCompletedSurveyTwo(data) {
  // 获取竣工验收列表(二期)
  return request({
    url: "/pc/project/project_completed_survey",
    method: "POST",
    data
  });
}

/* 导出接口们 */
export function exportProjectStageStatistics(data) {
  // 导出项目进度情况
  return request({
    url: "/renovation/project/exportProjectStageStatistics",
    method: "POST",
    data
  });
}

export function projectPoorHouseholdSurvey(data) {
  // 获取建卡贫困户表格数据
  return request({
    url: "/pc/project/project_poor_household_survey",
    method: "POST",
    data
  });
}

export function projectDeepHouseholdSurvey(data) {
  // 获取深度贫困乡镇表格数据
  return request({
    url: "/pc/project/project_deep_household_survey",
    method: "POST",
    data
  });
}

export function flowTree(data) {
  // 获取深度贫困乡镇表格数据
  return request({
    url: "/renovation/flow/flowTree",
    method: "POST",
    formData:data
  });
}

export function stageStoreList() {
  // 获取阶段库列表
  return request({
    url: "/renovation/project/stageStoreList",
    method: "POST",
  });
}

export function getProjectListByStageStore(data) {
  // 获取阶段库列表
  return request({
    url: "/renovation/project/getProjectListByStageStore",
    method: "POST",
    data
  });
}

export function getTypeList() {
  // 获取项目类型(灵)
  return request({
    url: "/renovation/project/getTypeList",
    method: "POST",
  });
}

export function queryProjectCountByStageStore(data) {
  // 获取阶段库统计
  return request({
    url: "/renovation/project/queryProjectCountByStageStore",
    method: "POST",
    data
  });
}

export function reclaimProjectLibrary(data) {
  // 二期获取项目库列表
  return request({
    url: "/pc/project/reclaim_project_library",
    method: "POST",
    data
  });
}

export function queryProjectCountByStageStoreTwo(data) {
  // 二期获取项目库统计
  return request({
    url: "/pc/project/query_project_count_by_stage_store",
    method: "POST",
    data
  });
}

export function queryProjectStoreParam() {
  // 二期获取项目库所在库查询
  return request({
    url: "/pc/project/query_project_store_param",
    method: "POST",
  });
}

export function findDetailByDictionaryType(data) {
  // 二期获取项目类型
  return request({
    url: "pc/project/pre_assembly/01_find_detail_by_dictionary_type",
    method: "POST",
    formData:data
  });
}

export function getIndividualApplyLibrary(data) {
  // 二期获取个人
  return request({
    url: "/pc/land/apply/01_get_individual_apply_library",
    method: "POST",
    data
  });
}

export function getCollectiveApplyLibrary(data) {
  // 二期获取集体
  return request({
    url: "/pc/land/apply/07_get_collective_land_Library",
    method: "POST",
    data
  });
}
